import request from '@/utils/request'

export const getAllFAQ = () => request.get('/api/faq').then(res => res.data)
export const createFAQ = (data) => request.post('/api/faq', data).then(res => res.data)
// 修改编辑接口参数结构
export const editFAQ = (id, data) => request.put(`/api/faq/${id}`, data).then(res => res.data)
// 修正删除接口参数传递方式
export const deleteFAQ = (id) => request.delete(`/api/faq/${id}`).then(res => res.data)